import request from '../Utils/request'

//查找品牌
export function GetBrands(params){
    return request.get(`/GoodsBrands`,{params:params});
}

export function getById(id){
    return request.get(`/GoodsBrands/${id}`)
}
//添加品牌
export function addBrand(data){
    return request.post(`/GoodsBrands`,data)
}
//编辑品牌
export function PutBrand(id,data){
    return request.put(`/GoodsBrands/${id}`,data)
}


//修改状态
export function PutStatus(data){
    return request.put(`/GoodsBrands/status`,data)
}

export function deleteId(id){
    return request.delete(`/GoodsBrands/${id}`)
}

